package priv.happy.pojo03;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.*;

/**
 * @Author: HAPPY
 * @Project_name: hibernate
 * @Package_name: priv.happy
 * @Date: 2021/10/11 8:29
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Entity(name = "transport_joined")
@Inheritance(strategy = InheritanceType.JOINED)
public class Transport {
    @Id
    private Integer id;
    private String name;
    private String runType;
}
